package chainofResponsibility;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/10 16:18
 * @Description: 责任链模式（Chain of Responsibility Pattern）
 */
public class Main {
    public static void main(String[] args) {
        AbstractLogger logger = ChainOfLoggers.getChainOfLoggers();
        logger.logMassage(AbstractLogger.ERROR, "Error Massage.");
        logger.logMassage(AbstractLogger.DEBUG, "Debug Massage.");
        logger.logMassage(AbstractLogger.INFO, "Information Massage.");
    }

}
